

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Drawing Methods [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Shape Scripts,Shape Scripts Drawing Methods,Drawing Methods,Drawing Methods Shape Scripts">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Drawing Methods</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="shape_attributes.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="color_queries.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" bgcolor="#e3e6ed" style="width:177px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Method Name</span></p>
</td>
<td valign="top" width="436" bgcolor="#e3e6ed" style="width:436px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Description</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">addsubshape(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string shapename[,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int width,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int height])</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Adds a sub-shape with the name </span><span class="f_MenuKeyField">shapename</span><span class="f_Tabletext"> that must be defined within the current shape definition.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">arc(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int startingpointx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int startingpointy,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endingpointx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endingpointy)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws an elliptical anticlockwise arc with the ellipse having extents at </span><span class="f_Tabletext" style="font-weight: bold;">left</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">top</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">right</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">bottom</span><span class="f_Tabletext">. The start point of the arc is defined by the intersection of the ellipse and the line from the center of the ellipse to the point (</span><span class="f_Tabletext" style="font-weight: bold;">startingpointx</span><span class="f_Tabletext" style="font-style: italic;">, </span><span class="f_Tabletext" style="font-weight: bold;">startingpointy</span><span class="f_Tabletext">). The end of the arc is similarly defined by the intersection of the ellipse and the line from the center of the ellipse to the point (</span><span class="f_Tabletext" style="font-weight: bold;">endingpointx</span><span class="f_Tabletext" style="font-style: italic;">, </span><span class="f_Tabletext" style="font-weight: bold;">endingpointy</span><span class="f_Tabletext">).</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">For example:</span></p>
<p class="p_Code"><span class="f_Code">Arc(</span><span class="f_Code" style="color: #993366;">0, 0,</span><span class="f_Code"> </span><span class="f_Code" style="color: #ff0000;">100, 100</span><span class="f_Code">, </span><span class="f_Code" style="color: #00ccff;">95, 0</span><span class="f_Code" style="color: #00ffff;">,</span><span class="f_Code"> </span><span class="f_Code" style="color: #339966;">5, 0</span><span class="f_Code">);</span></p>
<p class="p_Tabletext" style="text-align: center;"><img src="arc.png" width="317" height="226" border="0" alt="arc"></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">arcto(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int startingpointx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int startingpointy,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endingpointx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endingpointy)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">As for the arc method, except that a line is drawn from the current position to the starting point of the arc, and then the current position is updated to the end point of the arc.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">bezierto(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int controlpoint1x,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int controlpoint1y,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int controlpoint2x,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int controlpoint2y,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endpointx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int endpointy)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws a bezier curve and updates the pen position.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">defSize(int width, int height)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the default size of the element.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This can appear in IF and ELSE clauses with different values in each, and causes the element to be resized automatically each time the values change. For example:</span></p>
<p style="margin: 7px 0px 7px 0px;"><span class="f_Code"> &nbsp; if(HasTag(&quot;horizontal&quot;,&quot;true&quot;)) {</span><br>
<span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defSize(100,20);</span><br>
<span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rectangle(0,0,100,100);</span><br>
<span class="f_Code"> &nbsp; }</span><br>
<span class="f_Code"> &nbsp; else {</span><br>
<span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defSize(20,100);</span><br>
<span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rectangle(0,0,100,100);</span><br>
<span class="f_Code"> &nbsp; }</span><br>
<span style="font-size: 12pt; font-family: 'Times New Roman'; color: #000000;">&nbsp;</span><br>
<span class="f_Tabletext">The above example sets the shape to the specified default size each time the</span><br>
<span class="f_Tabletext">Tagged Value </span><span class="f_Tabletext" style="font-style: italic;">horizontal</span><span class="f_Tabletext"> is changed.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">When this is set, </span><span class="f_Tabletext" style="font-weight: bold;">[Alt]+[Z]</span><span class="f_Tabletext"> also resizes the shape to the defined dimensions.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">The minimum value for both </span><span class="f_MenuKeyField">int width</span><span class="f_TiporNoteText"> and </span><span class="f_MenuKeyField">int height</span><span class="f_TiporNoteText"> is 10.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">drawnativeshape()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Causes Enterprise Architect to render the shape using its usual, non-Shapescript notation. Subsequent drawing commands are super-imposed over the native notation.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This method is only enabled for element Shape Scripts; line Shape Scripts are not supported.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ellipse(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws an ellipse with extents defined by </span><span class="f_Tabletext" style="font-weight: bold;">left</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">top</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">right</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">bottom</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">endpath()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Ends the sequence of drawing commands that define a path.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">fillandstrokepath()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Fills the previously defined path with the current fill color, then draws its outline with the current pen.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">fillpath()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Fills the previously defined path with the current fill color.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">hidelabel(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string labelname)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Hides the label specified by </span><span class="f_MenuKeyField">labelname</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">image(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string imageId,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws the image that has the name </span><span class="f_Tabletext" style="font-weight: bold;">imageId</span><span class="f_Tabletext"> in the </span><span class="f_UIControl">Image Manager</span><span class="f_Tabletext">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">The image must exist within the model in which the stereotype is used. If it does not already exist in the model, you must import it as <a href="importrefdata.htm">reference data</a>.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">lineto(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int x,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int y)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws a line from the current cursor position to a point specified by </span><span class="f_Tabletext" style="font-weight: bold;">x</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">y</span><span class="f_Tabletext">, and then updates the pen cursor to that position</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">moveto(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int x,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int y)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Moves the pen cursor to the point specified by </span><span class="f_Tabletext" style="font-weight: bold;">x</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">y</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">polygon(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int centerx,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int centery,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int numberofsides,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int radius,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">float rotation)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws a regular polygon with center at the point (</span><span class="f_Tabletext" style="font-weight: bold;">centerx</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">centery</span><span class="f_Tabletext">), and </span><span class="f_Tabletext" style="font-weight: bold;">numberofsides</span><span class="f_Tabletext"> number of sides.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">print(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string text)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Prints the specified text string.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You cannot change the font size, type or color of this text.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">printifdefined(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string propertyname,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string truepart[,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string falsepart])</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Prints the </span><span class="f_Tabletext" style="font-style: italic;">truepart</span><span class="f_Tabletext"> if the given property exists and has a non-empty value, otherwise prints the optional </span><span class="f_Tabletext" style="font-style: italic;">falsepart</span><span class="f_Tabletext">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You cannot change the font size, type or color of this text.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">println(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string text)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Appends a line of text to the shape and a line break.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You cannot change the font size, type or color of this text.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">printwrapped(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string text)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Prints the specified text string, wrapped over multiple lines if the text is wider than its containing shape.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You cannot change the font size, type or color of this text.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">rectangle(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws a rectangle with extents at </span><span class="f_Tabletext" style="font-weight: bold;">left</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">top</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">right</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">bottom</span><span class="f_Tabletext">. Values are percentages.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">roundrect(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int left,</span><br>
<span class="f_Tabletext" style="font-weight: bold;"> </span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int top,</span><br>
<span class="f_Tabletext" style="font-weight: bold;"> </span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int right,</span><br>
<span class="f_Tabletext" style="font-weight: bold;"> </span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int bottom,</span><br>
<span class="f_Tabletext" style="font-weight: bold;"> </span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int abs_cornerwidth,</span><br>
<span class="f_Tabletext" style="font-weight: bold;"> </span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int abs_cornerheight)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws a rectangle with rounded corners, with extents defined by </span><span class="f_Tabletext" style="font-weight: bold;">left</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">top</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">right</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">bottom</span><span class="f_Tabletext">. The size for the corners is defined by </span><span class="f_Tabletext" style="font-weight: bold;">abs_cornerwidth</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">abs_cornerheight</span><span class="f_Tabletext" style="font-style: italic;">;</span><span class="f_Tabletext"> these values do not scale with the shape.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setdefaultcolors()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the brush and pen color to the default settings, or to the user-defined colors if available. See <a href="color_queries.htm">Color Queries</a>.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setfillcolor(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int red,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int green,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int blue)</span></p>
<p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setfillcolor(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">Color newColor</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the fill color.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">You can specify the required color by defining RGB values or using a color value returned by any of the <a href="color_queries.htm">Color Queries</a>; e.g.</span></p>
<p class="p_Code"><span class="f_Code">GetUserFillColor()</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setlinestyle(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string linestyle)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Changes the stroke pattern for commands that use the pen.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters: </span></p>
<p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">string linestyle</span><span class="f_Tabletext">: the following styles are valid:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">solid</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">dash</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">dot</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">dashdot</span><span class="f_Bulletlist1"> </span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">dashdotdot</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setorigin(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string relativeTo,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int xOffset,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int yOffset)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Positions floating text labels relative to the main shape.</span></p>
<p class="p_Tabletext"><span class="f_MenuKeyField">relativeTo</span><span class="f_Tabletext"> is one of </span><span class="f_MenuKeyField">N</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">NE</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">E</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">SE</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">S</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">SW</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">W</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">NW</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">CENTER</span></p>
<p class="p_Tabletext"><span class="f_MenuKeyField">xOffset</span><span class="f_Tabletext"> and </span><span class="f_MenuKeyField">yOffset</span><span class="f_Tabletext"> are in pixels, not percentage values, and can be negative.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setpen(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int red,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int green,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int blue[,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int penwidth])</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the pen to the defined color and optionally sets the pen width.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This method is only for line-drawing commands. It does not affect any text commands.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setpencolor(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int red, </span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int green,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int blue)</span></p>
<p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setpencolor(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">Color newColor</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the pen color.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">You can specify the required color by defining RGB values or using a color value returned by any of the <a href="color_queries.htm">Color Queries</a>; e.g.</span></p>
<p class="p_Code"><span class="f_Code">GetUserFillColor()</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This method is only for line-drawing commands. It does not affect any text commands.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">setpenwidth(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">int penwidth)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the width of the pen. Pen width should be between </span><span class="f_Tabletext" style="font-weight: bold;">1</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">5</span><span class="f_Tabletext">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This method is only for line-drawing commands. It does not affect any text commands.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">showlabel(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">string labelname)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Reveals the hidden label specified by </span><span class="f_MenuKeyField">labelname</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">startcloudpath(</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">puffWidth,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">puffHeight,</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<span class="f_Tabletext" style="font-weight: bold;">noise)</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Similar to </span><span class="f_Tabletext" style="font-weight: bold;">StartPath</span><span class="f_Tabletext">, except that it draws the path with cloud-like curved segments (</span><span class="f_Tabletext" style="font-style: italic;">puffs</span><span class="f_Tabletext">).</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters: </span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-style: italic;">float </span><span class="f_Bulletlist1" style="font-weight: bold;">puffWidth</span><span class="f_Bulletlist1"> (default = </span><span class="f_Bulletlist1" style="font-weight: bold;">30</span><span class="f_Bulletlist1">), the horizontal distance between puffs</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">float </span><span class="f_Bulletlist1" style="font-weight: bold;">puffHeight</span><span class="f_Bulletlist1"> (default = </span><span class="f_Bulletlist1" style="font-weight: bold;">15</span><span class="f_Bulletlist1">), the vertical distance between puffs</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">float </span><span class="f_Bulletlist1" style="font-weight: bold;">noise</span><span class="f_Bulletlist1"> (default = </span><span class="f_Bulletlist1" style="font-weight: bold;">1.0</span><span class="f_Bulletlist1">), the randomization of the puffs' positions.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">startpath()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Starts the sequence of drawing commands that define a path.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="177" style="width:177px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">strokepath()</span></p>
</td>
<td valign="top" width="436" style="width:436px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Draws the outline of the previously defined path with the current pen.</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
